// This file was automatically generated from tests.soy.
// Please don't edit this file by hand.

goog.provide('dkpoints.tests.templates');

goog.require('soy');
goog.require('soy.StringBuilder');


dkpoints.tests.templates.testCase = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<div class="testCase"><div class="testHeader" id="', soy.$$escapeHtml(opt_data.panelID), 'Header">', soy.$$escapeHtml(opt_data.testName), '</div><div class="testDesc">', soy.$$escapeHtml(opt_data.testDesc), '</div><div class="testPanel" id="', soy.$$escapeHtml(opt_data.panelID), '"></div></div>');
  if (!opt_sb) return output.toString();
};


dkpoints.tests.templates.setupStep = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<div class="setupStep"><b>Setting up test condition:</b> ', soy.$$escapeHtml(opt_data.setupDesc), '</div>');
  if (!opt_sb) return output.toString();
};


dkpoints.tests.templates.profileResults = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<div class="profileResults"><b>Profiling Results:</b> ', soy.$$escapeHtml(opt_data.profileResults), '</div>');
  if (!opt_sb) return output.toString();
};


dkpoints.tests.templates.positiveResult = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<div class="positiveResult"><b>Test condition passed:</b> ', soy.$$escapeHtml(opt_data.resultString), '</div>');
  if (!opt_sb) return output.toString();
};


dkpoints.tests.templates.negativeResult = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<div class="negativeResult"><b>Test condition failed:</b> ', soy.$$escapeHtml(opt_data.resultString), '</div>');
  if (!opt_sb) return output.toString();
};


dkpoints.tests.templates.resultDetails = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<ul class="resultDetails">');
  var detailList30 = opt_data.details;
  var detailListLen30 = detailList30.length;
  for (var detailIndex30 = 0; detailIndex30 < detailListLen30; detailIndex30++) {
    var detailData30 = detailList30[detailIndex30];
    output.append('<li class="resultDetail ', soy.$$escapeHtml(opt_data.posOrNeg), 'Result"><b>', soy.$$escapeHtml(detailData30.resultTitle), ':</b> ', soy.$$escapeHtml(detailData30.resultDetail), '</li>');
  }
  output.append('</ul>');
  if (!opt_sb) return output.toString();
};


dkpoints.tests.templates.markComplete = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append(' - <span class="', soy.$$escapeHtml(opt_data.result), '">', (opt_data.result == 'pass') ? 'Pass' : 'Fail', '</span>');
  if (!opt_sb) return output.toString();
};
